import { defineStore } from 'pinia'
import { ref } from 'vue'

//数字计数器
export const useCounterStore = defineStore('n-count',()=>{
    const count = ref(100)

    const addCount = (n) => {
        count.value += n;
    }

    return {
        count,
        addCount
    }
})